<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <title>Title</title>
    </head>
    <style>
        body {
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }

        html,
        body {
            height: 100%;
        }
        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: stretch;
        }

        .header {
            height: 80px;
            width: 100%;
            background-color: red;
        }
        .body {
            flex: 1;
        }

        .footer {
            height: 80px;
            width: 100%;
            background-color: black;
        }
    </style>
    <body>
        <main class="main">
            <header class="header"></header>
            <article class="body"></article>
            <footer class="footer"></footer>
        </main>
    </body>
</html>
